<div class="layui-card" style="background: none;height: 100%;">
	<div class="layui-card-body" style="height:100%;border-bottom: 0px;padding: 1px;">
	  <table class="formTable layui-form model-form">
	  	<tr>
	  		<td style="padding-left:0px;border: 0px;">
		      <select id="classify-select" name="classify" lay-filter="classify">
		      #for(classify:classifies)
		      	 <option value="#(classify?classify.id:'')">#(classify?classify.name:'')(#(classify?classify.count:0))</option>
		      #end
		      </select>				  		
	  		</td>
	  	</tr>
	  </table>
		<div class="ImageList">
			<div class="content" id="select-model-list">
			</div>
		</div>
	</div>
</div>
<script id="selectModelsScript" type="text/html"> 
#[[
{{#  if(d.count === 0){ }}
  无数据
{{# } else{ }}
    {{#  layui.each(d.data, function(index, item){ }}
		<div class="item" name="{{item.id?item.id:''}}" >
			{{#  if(item.thumbnail!=null && item.thumbnail!='' && item.thumbnail!='null'){ }}
					<img class="Thumbnail " id="{{item.id?item.id:''}}" src="{{d.ctx}}{{item.thumbnail}}">
				{{# } else{ }}
					<img  class="Thumbnail "  id="{{item.id?item.id:''}}" src="{{d.ctx}}/assets/img/thum-default.jpg">
			{{# } }} 
			<div class="title">{{item.name?item.name:''}}</div>
			<div class="cornerText">{{item.type?item.type:''}}</div>
		</div>
    {{#  }); }}
{{#  } }} 
]]#
</script>
 
 <!-- 表单弹窗-->
<script type="text/html" id="modelBizModel"> 
    <form id="modelBizModelForm" lay-filter="modelBizModelForm" class="layui-form model-form" style="padding: 0px;">
        <input name="id" type="hidden"  />
		<table id="modelBizModelFormTableId" class="formTable">
			<tr>
				<td style="border: 0px;">名称</td>
				<td style="text-align: left;border: 0px;">
                	<input name="name"  placeholder="请输入名称" type="text" class="layui-input" />
                </td>
			</tr>
			<tr>
				<td style="width:15px;border: 0px;">缩略图</td>
				<td colspan="" style="text-align: left;width: 60px;border: 0px;">
			    	<img id="BizModel-cover" src="#(ctx)/assets/img/thum-default.jpg" style="width:96px;height:96px;">
				</td>
			</tr>	
			<tr>
				<td colspan="2" style="text-align: right;border: 0px;">
					<button class="layui-btn  layui-btn-sm" lay-filter="modelSubmitBizModelForm" lay-submit>保存</button>
				</td>
			</tr>
		</table>    
    </form>
</script>
